/* 自定义样式 */
body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.collection-item {
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.collection-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.collection-title {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.collection-title:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.collection-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.collection-tags {
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    text-decoration: none;
}

.tag:hover {
    background-color: #dee2e6;
    color: #495057;
    text-decoration: none;
}

.source-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.collection-content {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-cloud {
    text-align: center;
}

.tag-cloud .tag {
    margin: 0.25rem;
    display: inline-block;
}

.tag-cloud .tag.tag-size-1 { font-size: 0.75rem; }
.tag-cloud .tag.tag-size-2 { font-size: 0.875rem; }
.tag-cloud .tag.tag-size-3 { font-size: 1rem; }
.tag-cloud .tag.tag-size-4 { font-size: 1.125rem; }
.tag-cloud .tag.tag-size-5 { font-size: 1.25rem; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .collection-item {
        margin-bottom: 1rem;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* 模态框样式 */
.modal-body .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* 按钮样式 */
.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}

